﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IrisMembership.DomainClasses
{
    public class Permission
    {
        public virtual int Id { get; set; }
        public virtual string ControllerName { get; set; }
        public virtual string ActionName { get; set; }
        public virtual string AreaName { get; set; }
        public virtual string PermissionName { get; set; }
        public virtual ICollection<Role> Roles { get; set; }
        public virtual int? ParentPermissionId { get; set; }
        public virtual Permission ParentPermission { get; set; }
        public virtual ICollection<Permission> ChildrenPermissions { get; set; }
    }
}
